---
sidebar_position: 2137 # Last in the section - deprecated and internal
---

<DeprecatedBanner />

# callMicrotasks

`callMicrotasks` flushes the microtask queue from the UI thread.

## Reference

```javascript
import { callMicrotasks } from 'react-native-worklets';

callMicrotasks();
```
